sum = 1
N = int(input())

for i in range(1,N+1):
        sum = sum * i

print(sum)
